﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace YL.Core.Entity.Meter
{
    /// <summary>
    /// 设备历史属性上报
    /// </summary>
    [SugarTable("Meter_DevicePropertyHistory")]
    public class DevicePropertyHistory
    {
        [SugarColumn(IsNullable = false, IsPrimaryKey = true, IsIdentity = true)]
        public int HistoryId { set; get; }
        /// <summary>
        /// 设备在平台内的唯一标识
        /// </summary>
        public string IotId { set; get; }
        /// <summary>
        /// ProductKey(唯一标识)
        /// </summary>
        public string ProductKey { set; get; }
        /// <summary>
        /// 设备名称（某一产品下的唯一标识）
        /// </summary>
        public string DeviceName { set; get; }
        /// <summary>
        /// 数据流转消息产生时间
        /// </summary>
        public string GmtCreate { set; get; }
        /// <summary>
        /// 物模型类型
        /// </summary>
        public string DeviceType { set; get; }
        /// <summary>
        /// 属性名称(对应time)
        /// </summary>
        public string PropertyName { set; get; }
        /// <summary>
        /// 属性值(具体类型根据配置的值类型，建议采用string)(对应value)
        /// </summary>
        public string PropertyValue { set; get; }
        /// <summary>
        /// 属性产生时间，如果设备没有上报数据，默认采用在云端生成的时间(对应time)
        /// </summary>
        public Int32 PropertyTime { set; get; }
    }
}
